Method for simulating the effects of the optical distortions of a windshield on the image recording quality of a digital image recording device

ABSTRACT

A method for simulating the effects of optical power of a windshield on the image recording quality of a digital image recording device, in particular of a digital image recording device from an advanced driver-assistance system. It is based on adapted stochastic ray tracing method to simulate the effects of the optical distortions of a windshield on the image recording quality of a digital image recording device from a measured optical quality function of the windshields related to these optical distortions and an image of a landscape likely to be recorded by a digital image recording device. It provides a simulated image of said image as viewed through said windshield taking into account its intrinsic optical particularities. The method can be used in a process for evaluating the optical quality of windshields for a use with a digital image recording device.

TECHNICAL FIELD

The invention pertains to the technical field of methods for simulating the effects of optical distortions of a windshield on the image recording quality of a digital image recording device, in particular of a digital image recording device from an advanced driver-assistance system.

BACKGROUND ART

Advanced/automated driver-assistance systems (ADAS) help divers in controlling their vehicles to improve safety of driver and people in the outside surrounding environment. They are on-board systems which are able to provide real-time information on the state of road traffic and/or on the state of the vehicle's mechanical and/or electrical equipment and components, assess the driver's state of fatigue or distraction, detect and anticipate possible threats from the vehicle's external environment, or help the driver perform certain difficult manoeuvres. Outstanding functions are adaptive cruise control, lane keeping, emergency braking, that are now mandatory to fulfil the Euro NCAP 5* requirements, parking assistance, autonomous driving, traffic signs detection, or anti-collision.

ADAS integrates numerous devices or sensors to collect data on the driver, the vehicle and/or their environment to perform their functions. In particular, they embed one or more digital image recording devices for real-time recording of images and/or video of the outside environment. The recording devices are often installed inside the vehicle, behind the windshield which in turn also acts as a protective shield.

The recorded images are processed by the ADAS depending on the desired functionality. For example, for night driving assistance, an infrared camera records a video of the outside environment which is then displayed in real time on the dashboard of the vehicle. For autonomous driving or emergency braking, a camera records images and/or video which are then processed by object detection and classification algorithms to extract the relevant data for further processing by the vehicle's automatic control unit.

For optimal operation of ADAS, high quality images and/or video are mandatory. For example, ADAS often comprises object detection and classification algorithms which real-time process recorded images/videos for real-time detection and classifications of objects from the surrounding environment of the vehicle. These algorithms are sensitive to colours, light intensity and light deviation in the recorded images/videos. In particular, these algorithms often contain an estimation of the position, distance and/or velocity of the objects in relation to the car position, velocity and/or trajectory. This quantity is important in many ADAS functions, for instance to calculate the risk of a collision. Any artefacts in the images/videos may cause wrong detection and/or classification and/or estimation of the distance, position or velocity of the target which may lead to defective operations of ADAS and safety failures, for instance a wrong estimation of the risk of collision.

It is then a strong requirement that the optical path of ADAS is free from optical distortions which may degrade the quality of the recorded images or/ videos. In this scope, lot of efforts has been made and is still being made to improve the optical quality of windshields, since they are key components in the optical system of ADAS and have a key role in their overall performances.

Beside, windshields, as efficient as they could be, still remain optical systems in themselves with their own optical properties and limitations. Calibrating tools for ADAS has then been developed which try to evaluate and manage the effects of windshield on recorded images and/or videos by ADAS.

EP 3 293 701 B1 describes a calibration method for ADAS to compensate the optical distortions from windshields. Optical distortions are calculated from the comparison of recorded images of a planar checkerboard pattern through and out a reference windshield. Only static parameters are corrected, i.e. parameters that are considered to be the same for all windshields of a given category of product and, once corrected, are corrected also for all unmeasured windshields of same category. The static parameters are limited to tilt angle, refractive index or thickness of the pane.

In this method, intrinsic non static optical properties of each individual windshield are completely overlooked, which may cause inefficient calibration in long term use, in particular if a windshield departs too much from the reference windshield regarding optical distortions. Windshields of same kind often show variations of their respective distribution of optical properties owing to normal tolerances of the manufacturing process, either because they come from different manufacturing lines or, within the same line, because of normal tolerances on the bending process, inhomogeneity of the furnace temperatures, defects during lamination, coating if coating is present . . . . This distribution of optical properties is different from a windshield to another within the same category and are by definition non static, which means that they cannot be considered as identical for all windshields in the same class. In this regard, each windshields of same kind have to be considered as an optical system in itself, different from the others, and its intrinsic optical properties have not to be neglected.

FR 3 032 820 A1 describes a calibration method for an ADAS to compensate the optical distortions from the windshield in front of which it is installed. Correction parameters are calculated while the car is driving from the deviations between measured positions of a static objet from recorded images of said object through the windshield and predicted positions for said object.

The method shows several disadvantages. It has to be performed once the ADAS is already installed or in use on the vehicle and while the vehicle is driving. This can be hardly implemented in a production line. A system for calibrating the ADAS, comprising both the calibration device to perform the method and the facilities to record images of the road, has to be available on the operation place, which may become tedious and expensive in an industrial context.

As an alternative, WO 2020164841 A1 provides a computer implemented method to form training datasets containing simulated images viewed through a windshield which can be later fed to an ADAS for calibration or be used for windshield qualification. In the method, the effect of different windshields is simulated by an optical filter applied on the images of a dataset.

Using an optical filter to simulate the effect of windshield is not always an appropriate strategy to accurately simulate the effect of certain optical particularities. In particular, as a homogeneous filter, it cannot account for variation of said optical power along the windshield. Since the optical filter is used as a static filter, the effect of the intrinsic optical properties of each individual windshield is overlooked, with the same drawbacks mentioned above.

Finally, in the ADAS field, in particular because the effect of windshield is often overlooked during calibration and/or the windshield is falsely considered as a negligible component, it is also a common practice to require optical specifications for windshields which may be hard to fulfil in the future, in particular regarding the optical power in the view zone of the digital image recording devices. In this scope, anticipating this technical limitation by a better considering the particularities of windshield during ADAS calibration may be very valuable.

SUMMARY OF THE INVENTION Technical Problem

There is a need for a method which solves all the afore mentioned problems. In particular, there is a need for a method for simulating the effects of distortions of a windshield on the image recording quality of a digital image recording device, which accounts accurately for the intrinsic optical particularities of each windshield considered individually, is able to provide valuable information of said effects for calibrating an ADAS without requiring cumbersome calibrating systems, and is compatible with production throughputs.

Solution to Problem

The present invention relates to a computer implemented method and a process as described in claims.

In particular, the invention is based on adapted stochastic ray tracing method to simulate the effects of the optical distortions of a windshield on the image recording quality of a digital image recording device from a measured optical quality function of the windshields related to those optical distortions and an image of a landscape likely to be recorded by a digital image recording device. It provides a simulated image of the image as viewed through said windshield taking into account its intrinsic optical particularities.

The method according to the invention can be used in a process for evaluating the optical quality of windshields for a use with a digital image recording device, in particular with a digital image recording device of an automated driving and advanced safety system. It can also be used in a process for calibrating digital image recording device of an automated driving and advanced safety system.

An aspect of the invention also relates to a process for evaluating the performances of an object detection and classification algorithm of an automated driving and advanced safety system, in which set of simulated images of one or several images of landscapes as viewed through one or several windshields are fed to an object detection and classification algorithm of an automated driving and advanced safety system to monitor its performances in object detection and classification.

Advantageous Effects of the Invention

A first outstanding advantageous effect of the invention is that the intrinsic optical properties of the windshield, i.e. the optical properties of the windshield as an optical system in itself are not overlooked or neglected anymore, but are taken into account in their worth influence on the quality of recorded image, even when the optical quality of the windshields is deemed to fulfil requirements. Comparing to methods of prior art, potential negative side-effects on image quality when a windshield departs too much from a reference windshield regarding optical distortions are completely eliminated.

A second advantage of the invention is that it does not rely on the computation of surrogate parameters, such as optical filters, to model the optical properties of the windshield. This kind of parameters are often limited in their application and not accurate enough for certain properties. Instead, the method of invention takes a measured quality function as a basis for the simulation and relies on the laws of optics, so that the accuracy and reliability of the simulated images are greatly improved.

Preferably, the measured quality function of the windshield which is related to the optical distortions of said windshield come from real-time measurements performed on production line of windshields. A measuring device may be at some location on the production line and configured to measure or collect data related to the quality function on the fly, on each windshield being produced. This approach is highly valuable as it is compatible with most common production throughputs and does not require later measurement on batches of already produced windshields, which is a time-consuming and tedious operation. The measured quality functions of the windshields can be stored in a database for later processing with a method according to the invention.

In the invention, the image of landscape may be of any kind. It may a recorded or a simulated 2D or 3D image of a 2D or a 3D real or simulated landscape. Preferably, it's a 2D image of landscape as they may require less computing resources for similar results compared to 3D images.

In the context of the invention, an image of landscape has to be understood as a representative image of a representative landscape which is likely to be recorded by a digital image recording device, in particular a digital image recording device of an automated driving and advanced safety system, through a windshield.

Because it is based on the use of images of landscapes, another advantage of the invention compared to prior art is that the need of cumbersome material calibration systems to evaluate the effects of windshields on recorded image of a material landscape by an ADAS, is alleviated, and even eliminated. Furthermore, the versatility in the choice of the landscape is greatly improved as it does not require to adapt and/or transform the existing material landscape to get a new one.

The method according to the invention allows to accurately simulate batches or sets images of landscape as viewed by a digital image recording device through windshields of a set or batches of windshields without requiring inaccurate approximations of the optical properties of windshields regarding their potential optical distortions and side-effects on quality of recorded images. As consequence, it can be advantageously used to evaluate the optical quality of windshields for applications in automated driving and advanced safety system, to calibrate digital image recording device of such system or to evaluate the performances of an object detection and classification algorithm of such system, as described in certain embodiments of the invention.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic representation of the common installation of an advanced/automated driver-assistance system in a transport vehicle.

FIG. 2 is a schematic representation of an example of a scene for ray tracing for a method according to the invention.

FIG. 3 is a logical data flow diagram of a method according to the invention.

FIG. 4 is a schematic representation of an example of a scene for ray tracing for a method according to the invention according to an embodiment of the invention.

FIG. 5 is a physical data flow diagram of a processing data system to implement a method according to the invention.

FIG. 6 is a logical data flow diagram of a method process for evaluating the performances of an object detection and classification algorithm of an automated driving and advanced safety system.

DESCRIPTION OF EMBODIMENTS

With reference to FIG. 1 , in most common installation 1000 of an ADAS in a transport vehicle, the ADAS comprises a digital image recording device 1001 located behind a demarcated view zone 1003 of the windshield 1002 of a vehicle. The digital image recording device 1001 is configured to real-time record or acquire images/videos of the landscape 1005 surrounding the vehicle. These images/videos are fed to the processing devices of the ADAS for object detection and classification, for instance cars, roads, trees, people, houses . . . . They may be also directly displayed, for instance on a screen, to the driver to help him to perform some manoeuvres.

On the windshield 1002, the view zone 1003 through which the digital image recording device 1001 is recording images/videos is usually demarcated by glaze or enamel stripes that are used as ornament and/or for concealing some elements such as fixing joints and electronics.

The inclination angle between the median axis (C) of the demarcated zone 1003 and the optical axis (B) of the digital image recording device 1001 may be equal to or may differ from the inclination angle between the median axis (C) of the demarcated zone 1003 and the median axis (A) of the vehicle chassis, which generally is horizontal. In most transport vehicles, the windshield 1002 is not vertical but inclined at a certain angle which is the installation angle of the windshield 1002 on the vehicle frame. In other words, with respect to the digital image recording device 1001, the windshield 1002 is inclined at an angle which corresponds to its condition of use.

In this configuration, the quality of the recorded images or/videos may partly depend on the optical quality of the demarcated view zone 1003 of the windshield 1001. In particular, the windshield 1002 must be devoid of optical distortions. However, as efficient as they could be, windshields still remain optical systems in themselves with their own optical properties and limitations, and their effects on the recorded images/videos remain to be evaluated for each of them.

Furthermore, as a windshield 1002 is often inclined with respect to the digital image recording device 1001, the distance between the surface of its demarcated view zone 1003 and the lens of the digital image recording device 1001, in one hand, and the length travelled by light ray inside the windshield 1002 itself, in other hand, vary vertically, i.e. along the (C) axis. Because the optical path length is not constant along this axis, further optical distortions, and/or deflections, may occur which have also to be considered while evaluating the effects of windshields on the image/video quality.

With reference to FIG. 1 to 3 , there is provided a computer implemented method 3000 for simulating the effects of the optical distortions of a windshield 1002 on the image recording quality of a digital image recording device 1001, wherein said method 3000 takes as input a measured optical quality function I3001 related to the optical distortions of the windshield 1002 and an image 2001 of a landscape 1005 likely to be recorded by a digital image recording device 1001 through said windshield 1002, wherein said method 3000 provides as output an image O3001 of said input image 2001 of a landscape 1005 as viewed through said windshield 1002, wherein said method comprises the following steps:

-   -   (a) modelling S3001 at least one sheet 2002 of transparent         mineral glass comprising two main parallel faces 2002 a, 2002 b,         wherein the surface of at least one of said two main faces 2002         a, 2002 b is textured with the measured quality function I3001,         and wherein the sheet 2002 of mineral glass is placed in front         of the input image 2001 of a landscape 1005 and is inclined,         with respect to said image 2001, at an installation angle AÔC of         said windshield 1002 in a transporting vehicle;     -   (b) calculating S3002, with a stochastic ray tracing method, the         global illuminance GI arriving through the modelled inclined         sheet 2001 of mineral glass from the input image 2002 of a         landscape 1005 as a light source 2003;     -   (c) calculating S3003 the 3D projection O3001 of the global         illuminance GI from the view frustum 2004 f of a virtual camera         2004 with an optical camera model (OCM) of said virtual camera         2004, wherein said virtual camera 2004 is placed in front of the         opposite main face 2002 b of the sheet 2002 of transparent         mineral glass with respect to the input image 2001 of a         landscape 1005 used as a light source 2003 and at a position         corresponding to an installation position of the digital image         recording device 1001.

In the field of ray tracing, ‘global illumination’ is a well-defined expression. It encompasses all kinds of illumination, whether direct or indirect, coming from a light source, i.e. the image 2001 of a landscape in the present invention. Direct light is the light coming directly form the light source and indirect light is the reflected, refracted and/or diffused light from surfaces and/or volumes in the scene.

The frustum 2004 f of the virtual camera 2004 corresponds to the field of view of said camera 2004 in the ray tracing scene. It is usually represented as a kind of pyramid of vision which is considered representative of the field of view of a real camera. Concretely, it constitutes the region of the ray tracing scene which may appear on the screen. ‘Frustum’ is well-defined term in the art.

In the context of the invention, optical distortions are to be understood as encompassing all the optical aberrations of the windshield which may affect the optical path of light so that the magnification varies across the field of view of said windshield at a given working distance. In other words, optical distortions are all aberrations which induces deviation from rectilinear projection; projection in which straight lines remain straight across the field of view. At some extent, in the context of the invention, optical distortions may also comprise blur as long as it comes from the optical particularities of the windshield itself. Optical distortions can come from variations in refractive index, in surface roughness/profile, or in thickness of the windshield. They may also occur from defects.

As explained above, the measured optical quality function OQF of the windshield 1002 which is related to the optical distortions of said windshield 1002 may come from real-time measurements performed on production line of windshields. In this context, it may be the measured transmitted wavefront error of the windshield, the measured surfaces profiles and/or the measured distribution of complex refractive index. In a preferred embodiment, the optical quality function OQF related to the optical distortions is the measured transmitted wavefront error, whose measurement can be relatively easily implemented on production lines of windshields since it can be performed quickly with acquisition rates which are compatible with throughputs of most production lines.

Object detection and classification algorithms implemented in data processing systems of ADAS are often sensitive to colours, i.e. light wavelengths, and may perform better in colour filtered, for instance red or green filtered image. On the other hand, colour filtering may help to reduce image artefacts or anomalies, in particular for night-time images. Furthermore, digital image recording device may sometimes comprise colour filter array on some pixels. On this scope, the image 2001 of a landscape 1005 may advantageously undergo some prior image processing in order to improve the image quality and/or extract wavelength specific information from said image and/or to render the effect of colour filter arrays.

In certain advantageous embodiments of method according to the invention, before step (a), the input image 2001 of a landscape 1005 may be digitally preprocessed, first with a colour filter array, for instance a clear-red-clear-clear or a clear-clear-red-clear filter array, and/or, second, with a demosaicing algorithm, in particular with a nearest-neighbour interpolation kernel.

At step (a) of the method according to the invention, at least one of the faces of the modelled sheet 2002 of transparent mineral glass is textured with the measured quality function I3001. The texture of the textured surface may be modelled in different ways. For instance, it may be modelled with a bump map or a displacement which is representative of the measured optical quality function.

At step (b) of the method according to the invention, the global illuminance GI is calculated with a stochastic ray tracing method. Compared to conventional, i.e. non-stochastic, ray tracing methods which relies on a given number of light rays to be drawn for each pixel, stochastic ray tracing methods needs less computer resources and computing time. They allow to focus calculation on light rays reaching the virtual camera and to those light rays going nowhere. In the invention, beside these advantages, using a stochastic ray tracing method also allows to get the same level of accuracy as with conventional ray tracing methods. Monte Carlo ray tracing methods, in particular Metropolis Light Transport ray tracing methods, provide valuable results.

Different stochastic ray methods are available in the art. Any of them may be used at step (b) providing it is adapted to calculate the global illuminance arriving through the modelled inclined sheet of mineral glass. In particular, a stochastic path tracing method may be used, as it allows to get a high level of precision and sharpness.

Several physically based rendering engines are available in the art to implement stochastic ray tracing in step (b). Examples of engines are Indigo renderer or Lux-CoreRender.

According to the invention, the 3D projection O3001 of the global illuminance GI is performed with a optical camera model (OCM). Preferably, it may be a physically realistic camera projection matrix. Alternatively, any other relevant quantity representative of the imaging operation, i.e. operation which converts simulated lights into colour values in a given colour space, e.g. RGB or XYZ, performed by the camera may be used, e.g. a point-spread function (PSF), an optical transfer function (OTF) or a real modelling of each interface of the different optics of the camera lens (optical design). Ideally, the physically realistic camera used to model the virtual camera 2004 may be the camera projection matrix, the optical transfer function, the point-spread function, the optical design or the like, of the digital recording device. However, in most cases, such models of the digital recording device may be not available or difficult to obtain. Nevertheless, accurate projection may still be obtained by considering the virtual camera as an ideal thin lens and using with the camera projection matrix of an ideal thin lens as a camera model.

In certain embodiments of the method according to the invention, the optical camera model may be the measured or the simulated optical transfer function of the digital image recording device 1001. A direct advantage may be that the 3D projection may be closer to the 3D projection performed by the digital image recording device and more accurate for digital image recording device with specific optics.

On the FIG. 2 , the input image of a landscape, is at a finite distance of the modelled sheet 2002 of transparent mineral glass. In particular, the input image 2001 of a landscape 1005 as a textured light source 2003 may be in the view frustum 2004 f of said virtual camera 2004. In this embodiment, the landscape 1005 of the image 2001 may represent a more realistic configuration in respect to what a digital image recording device from an ADAS may acquire, or view, from a real landscape. In particular, distance-dependent effects can be taken into account. The output image O3001 may thus be more representative of real conditions. However, the calculation of the global illumination may require more computational resources as the paths of light rays coming from the image 2001 of a landscape 1005 used as light source are not parallel.

Alternatively, according to a certain embodiment of method according to the invention, with reference to FIG. 4 , the input image 2001 of a landscape 1005 is digitally preprocessed as an environment map 3001 projected onto the inside surface of an environment sphere centered on the virtual camera 2004.

In the context of the invention, an environment map is a map projected on the scene coordinate system in order to make it the background of the scene in a ray tracing method. The environment map converts pixel locations in an image into angles of incidence. This makes any object to appear at an infinite location. In the embodiment, the image 2001 of the landscape 1005 may be projected on the all or part of the inside surface of the sphere with spherical mapping technique, so that the image 2001 used as light source 2003 corresponds to an infinitely distant illumination which is afterwards refracted, reflected and/or diffused on the modelled sheet of transparent mineral glass. Main advantage may be that the light rays coming from each pixel of the image 2001 used as a light source 2003 form a rectilinear and parallel beam from an angular direction, as if the image was located at infinite distance. The computing workload may be alleviated and the computing time may be reduced without prejudicing the accuracy of the output image O3001.

Placing the image 2001 of the landscape 1005 at finite or infinite distance in the scene of ray tracing is a matter of choice and will depend on the specifications of both the digital image recording device and the ADAS.

At step (a) of the method according to the invention, the modelled sheet 2002 of transparent mineral glass may represent the whole surface of the windshield 1002, and the surface of the at least one of two main faces 2002 a, 2002 b of said modelled sheet 2002 may be textured with the measured quality function OQF of the whole surface of said windshield 1002.

In a certain embodiment of method according to the invention, in step (a), the sheet 2002 of transparent mineral glass is modelled so that said sheet 2002 of transparent mineral glass represents only the demarcated zone 1003 of the windshield 1002 in front of which a digital image recording device 1001 may be placed. The demarcated zone 1003 is the region of interest for the recording of image through the windshield 1002 by the digital image recording device 1001. Therefore, it may be advantageous regarding computing time and speed of simulation to model only this demarcated zone 1003.

Alternatively, in a certain embodiment of method according to the invention, in step (a), the sheet 2002 of mineral glass is modelled so that the global illuminance GI calculated at step (b) is only the global luminance GI arriving through the part of modelled sheet 2002 of mineral glass which corresponds to a demarcated zone 1003 of the windshield 1002 through which a digital image recording device 1001 may record an image.

For instance, in step (a), the modelled sheet 2002 of transparent mineral glass may be modelled to represent the whole surface of the windshield 1002, and the surface of the at least one of two main faces 2002 a, 2002 b of said modelled sheet 2002 may be textured with the measured optical I3001 quality function of the whole surface of said windshield 1002. The portion of the surface of the modelled sheet 2002 which does not correspond to the demarcated zone 1001 may then be blackened in order to prevent part of the light coming from the light source from going through that portion. The global illuminance (GI) calculated at step (c) is then global luminance (GI) arriving through the non-blackened portion of the surface which corresponds to the demarcated zone 1003.

In certain embodiment of the method according to the invention, in step (a), a second sheet of transparent mineral glass and a polymeric interlayer may be modelled so that the first and second sheets of transparent mineral glass are assembled to each other by the polymeric interlayer, for instance a PVB interlayer, to form a laminated glazing, such as a windshield. The optical quality function I3001 of the windshield 1002 may then the measured optical quality function of the windshield or a calculated combination of measured optical quality functions of each sheet of transparent mineral glass and the polymeric interlayer.

The method of the invention is computer implemented. With reference to FIG. 5 , according to another aspect of the invention, there is provided a data processing system 5000 comprising means for carrying out the method 3000 according to any of the embodiments described herewith. Example of means for carrying out the method is a device 5001 which can be instructed to carry out sequences of arithmetic or logical operations automatically to perform tasks or actions. Such device, also called computer, can comprise one or more Central Processing Unit (CPU) and at least a controller device that are adapted to perform those operations. It can further comprise other electronic components like input/output interfaces 5003, non-volatile or volatile storages devices 5003, and buses that are communication systems for the data transfer between components inside a computer, or between computers. One of the input/output devices can be user interface for human-machine interaction, for example graphical user interface to display human understandable information.

As image processing and ray tracing often require a lot of computational power to process large amounts of data, the data processing system 5000 may advantageously comprise one or more Graphical Processing Units (GPU) whose parallel structure makes them more efficient than CPU, in particular for image processing in ray tracing.

Another object of the invention is to provide a computer program I5001 comprising instructions which, when the program is executed by a computer, cause the computer to carry out the method of the invention according to any embodiments described herein.

Any kind of programming language, either compiled or interpreted, can be used to implement the steps of the method of the invention. The computer program can be part of a software solution, i.e. part of a collection of executable instructions, code, scripts or the like and/or databases.

Another object of the invention is to provide a computer-readable medium 5002 comprising instructions which, when executed by a computer, cause the computer to carry out the method according to any of the embodiments described herein.

The computer-readable storage 5002 is preferably a non-volatile storage or memory, for example hard disk drive or solid-state drive. The computer-readable storage can be removable storage media or a non-removable storage media as part of a computer.

Alternatively, the computer-readable storage may be a volatile memory inside a removable media. This can ease the deployment of the invention into many production sites.

The computer-readable storage 5002 can be part of a computer used as a server from which executable instructions can be downloaded and, when they are executed by a computer, cause the computer to carry out a method according to any of the embodiments described herein.

Alternatively, the program may be implemented in a distributed computing environment, e.g. cloud computing. The instructions can be executed on the server to which client computers can connect and provide encoded data as inputs to the method of the invention. Once data are processed, the output can be downloaded and decoded onto the client computer or directly send, for example, as instructions. This kind of implementation can be advantageous as it can be realised in a distributed computing environment such as a cloud computing solution.

The method according the invention is well adapted to be used in a process for evaluating the optical quality of windshields for a use with a digital image recording device, in particular with a digital image recording device of an automated driving and advanced safety system. In this scope, the effects of the optical distortions may be simulated for each windshield of a batch of windshields from their respective measured quality function and a reference image of landscape or a set of reference images. Once the effects of the optical distortions are simulated, the windshields may be compared, and those less altering the image quality regarding required specifications may be selected for use with a digital image recording device. Alternatively, some criteria may be defined on the simulated images or on the output of ADAS algorithms fed with the simulated images in order to reject non-compliant windshields.

The method according the invention is also well adapted to be in a process for calibrating digital image recording device of an automated driving and advanced safety system. For instance, the effects of optical distortions of a reference windshield or a windshield from a set of reference windshields, i.e. windshields whose optical quality is considered to fulfil requirements for a use with a digital image recording device, may be simulated from a set of images of landscapes. The output images may then be used to calibrate and/or select the relevant features of a digital image recording device.

According to an aspect of the invention, with reference to FIG. 3 and FIG. 6 , there is provided a process 6000 for evaluating the performances of an object detection and classification algorithm of an automated driving and advanced safety system, wherein said process 6000 comprises the following steps:

-   -   (a) providing a set I6001 of measured optical quality functions         I3001 related to the optical distortions of a set of windshields         1002;     -   (b) providing a set I6002 of images 2001 of landscapes 1005         likely to be recorded by a digital image recording device 1001         through the windshields 1002 of said set of windshields 1002;     -   (c) using a computer implemented method 3000 according to any         embodiments described herein for each image 2001 of the set of         images 2001 of landscapes 1005 and each measured optical quality         function I3001 of the set measured optical quality functions         I3001 related to the optical distortions, in order to provide a         set O6001 of images of images 2001 of landscapes as viewed         through the windshield 1002 of said set of windshields 1002;     -   (d) feeding S6001 the set of images O3001 obtained at step (c)         to an object detection and classification algorithm of an         automated driving and advanced safety system;     -   (e) monitoring S6002 performance parameters O6002 in the object         detection and classification of said algorithm while the         algorithm is processing the set of images fed at step (d). 

1. A computer implemented method for simulating effects of optical distortions of a windshield on an image recording quality of a digital image recording device, wherein said method takes as input a measured optical quality function related to the optical distortions of the windshield and an input image of a landscape likely to be recorded by a digital image recording device through said windshield, wherein said method provides as output an image of said input image of a landscape as viewed through said windshield, wherein said method comprises the following steps: (a) modelling at least one sheet of transparent mineral glass comprising two main parallel faces, wherein a surface of at least one of said two main parallel faces is textured with the measured optical quality function, and wherein the sheet of transparent mineral glass is placed in front of the input image of the landscape and is inclined, with respect to said input image an installation angle of said windshield in a transporting vehicle; (b) calculating, with a stochastic ray tracing method, a global illuminance arriving through the modelled inclined sheet of transparent mineral glass from the input image of the landscape as a light source; and (c) calculating a 3D projection of the global illuminance from a view frustum of a virtual camera with an optical camera model of said virtual camera, wherein said virtual camera is placed in front of an opposite main face of the sheet of transparent mineral glass with respect to the input image of the landscape used as a light source and at a position corresponding to an installation position of the digital image recording device.
 2. The computer implemented method according to claim 1, wherein the measured optical quality function related to the optical distortions of the windshield is a measured transmitted wavefront error of the windshield, measured surfaces profiles and/or a measured distribution of complex refractive index.
 3. The computer implemented method according to claim 1, wherein the input image of the landscape is at a finite distance of the modelled sheet of transparent mineral glass.
 4. The computer implemented method according to claim 1, wherein the input image of the landscape is digitally preprocessed as an environment map projected onto an inside side of an environment sphere centered on the virtual camera.
 5. The computer implemented method according to claim 1, wherein, in step (a), the sheet of transparent mineral glass is modeled so that said sheet of transparent mineral glass represents only a demarcated zone of the windshield in front of which a digital image recording device is placed.
 6. The computer implemented method according to claim 1, wherein, in step (a), the sheet of transparent mineral glass is modelled so that the global illuminance calculated at step (c) is only the global luminance arriving through the part of modelled sheet of transparent mineral glass which corresponds to a demarcated zone of the windshield through which a digital image recording device records an image.
 7. The computer implemented method according to claim 1, wherein the optical camera model of the virtual camera is a camera projection matrix, a point-spread function, an optical transfer function or a real modelling of each interface of the different optics of the camera lens of the digital image recording device.
 8. The computer implemented method according to claim 1, wherein, before step (a), the input image of a landscape is digitally preprocessed first with a color filter array, and/or second with a demosaicing algorithm, in particular with a nearest-neighbor interpolation kernel.
 9. A computer implemented method according to claim 1, wherein the texture of the textured surface is modeled with a bump map or a displacement map.
 10. A computer implemented method according to claim 1, wherein the stochastic ray tracing method is a stochastic path tracing method.
 11. A data processing system comprising a processor and a memory coded with instruction for carrying out a method according to claim
 1. 12. A non-transitory computer readable medium comprising instructions which, when the instructions are executed by a computer, cause the computer to carry out a method according to claim
 1. 13. A method comprising performing a method according to claim 1 for evaluating an optical quality of a windshield for a use with a digital image recording device.
 14. A method comprising performing a method according to claim 1 for calibrating digital image recording device of an automated driving and advanced safety system.
 15. A process for evaluating performances of an object detection and classification algorithm of an automated driving and advanced safety system, wherein said process comprises the following steps: (a) providing a set of measured optical quality functions related to optical distortions of a set of windshields; (b) providing a set of images of landscapes likely to be recorded by a digital image recording device through the windshield of said set of windshields; (c) using a computer implemented method according to claim 1 for each image of the set of images of landscapes and each measured optical quality function I3001 of the set measured optical quality functions related to the optical distortions, in order to provide a set of images of images of a landscape as viewed through the windshield of said set of windshields; (d) feeding the set of images obtained at step (c) to an object detection and classification algorithm of an automated driving and advanced safety system; (e) monitoring performance parameters in the object detection and classification of said algorithm while the algorithm is processing the set of images fed at step (d).
 16. The method according to claim 13, wherein the digital image recording device is a digital image recording device of an automated driving and advanced safety system. 